package excuter;

import entity.ClassInfoDO;
import entity.UserDO;
import enums.DBEnum;
import enums.SexEnum;
import mapper.CarMapper;
import org.apache.ibatis.session.SqlSession;

import java.io.IOException;
import java.util.Map;

/**
 * @Author zhangrui
 * @Date 2018/10/30 10:10
 */
public class MybatisDemo {

    public static void main(String[] args) throws IOException {
        SqlSession session = DBEnum.LH.getDBSQLSession();
        try {
            CarMapper mapper = session.getMapper(CarMapper.class);
            ClassInfoDO classInfoDO=mapper.selectClass(1L);
            System.out.println(classInfoDO);
        } finally {
            session.close();
        }
    }
}
